import request from '@/utils/request'
const path = "/merchant"

/* 获取列表
@param 条件查询
*/
export function findShopList(params) {
    return request({
        url: path + '/shop/',
        method: 'get',
        params
    })
}

/* 新增
@param 所有参数
*/
export function createShop(data) {
    return request({
        url: path + '/shop/createAction/',
        method: 'post',
        data
    })
}

/* 获取信息接口
@param shopId Y
*/
export function getShopById(data) {
    return request({
      url: path + '/shop/getItemById/',
      method: 'post',
      data
    })
  }

/* 根据用户ID修改某个信息
@param 所有参数
*/
export function updateShop(data) {
    return request({
      url: path + '/shop/updateAction/',
      method: 'post',
      data
    })
  }

  /* 删除
@param shopId Y
*/
export function deleteShops(data) {
    return request({
        url: path + '/shop/deleteAction/',
        method: 'post',
        data
    })
}
